package cn.iocoder.yudao.module.product.controller.app.merchant;

import cn.iocoder.yudao.framework.common.pojo.CommonResult;
import cn.iocoder.yudao.module.product.controller.app.merchant.vo.MerchantInformationRespVO;
import cn.iocoder.yudao.module.product.service.merchant.MerchantCenterService;
import io.swagger.v3.oas.annotations.media.Schema;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author 梁富贵
 * @Date 2024/10/15
 **/
@Schema(description = "商家主页信息")
@RequestMapping("/merchant/information")
@RestController
@Validated
public class MerchantInformationController {
    @Resource
    private MerchantCenterService merchantCenterService;

    @Schema(description = "获取商家主页信息")
    @GetMapping("/get-information")
    public CommonResult<MerchantInformationRespVO> getInformation() {
        return CommonResult.success(merchantCenterService.getMerchantCenterInformation());
    }

}
